using UnityEngine;
using System.Collections;

public class EventRetry : MonoBehaviour
{

    GUIButton button;
    void Start()
    {
        button = gameObject.GetComponent<GUIButton>();
        button.OnClickCallback += OnClick;
    }
    void OnClick(Vector3 pos)
    {
        GameManager.GetInstance().OnEndScene();
        Application.LoadLevel(Application.loadedLevel);
    }
}
